<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="xterm.css">

</head>
<body>
    <div id="terminal"></div>
    <script src="xterm.js"></script>
    <script>
        var term = new Terminal();
        term.open(document.getElementById("terminal"))
        term.write('Hello from \x1B[1;3;31mxterm.js\x1B[0m $ ')
    </script>
</body>
</html>